//
//  ZFAlertManager+alert.m
//  components
//
//  Created by linzaifei on 2021/7/13.
//

#import "ZFAlertManager+alert.h"

@implementation ZFAlertManager (alert)
+(ZFAlertManager*)makerAlertTitle:(NSString*)title message:(NSString*)message block:(void(^)(ZFAlertManager *maker))block{
    return [self makerTitle:title message:message preferredStyle:UIAlertControllerStyleAlert block:block];
}
///actionsheet
+(ZFAlertManager*)makerSheetTitle:(NSString*)title message:(NSString*)message block:(void(^)(ZFAlertManager *maker))block{
    return [self makerTitle:title message:message preferredStyle:UIAlertControllerStyleActionSheet block:block];
}

///公共
+(ZFAlertManager*)makerTitle:(NSString*)title message:(NSString*)message preferredStyle:(UIAlertControllerStyle)preferredStyle block:(void(^)(ZFAlertManager *maker))block{
    ZFAlertManager *alertManager = [ZFAlertManager alertControllerWithTitle:title message:message preferredStyle:preferredStyle];
    block(alertManager);
    return alertManager;
}
@end
